package com.guicent.geekai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 聊天会话实体类
 */
@Data
@TableName("tb_chat_session")
@ApiModel(description = "聊天会话实体类")
public class ChatSession {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "会话 ID", required = true)
    private Long sessionId;

    @ApiModelProperty(value = "用户 ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "会话标题")
    private String sessionTitle;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;
}